﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="newMembre.aspx.cs" Inherits="Royaume.newMembre" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HolderStat2" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HolderTop" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="HolderMenu" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="HolderContent" runat="server">
<div class="ui-tabs ui-widget ui-widget-content ui-corner-all" >

    <asp:Table ID="Table2" runat="server">
    <asp:TableRow><asp:TableCell><asp:RequiredFieldValidator ID="empty_login" Display="Dynamic" ControlToValidate="txtlogin" runat="server" ErrorMessage="Le champs NomUsagé est vide">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="valid_login" ControlToValidate="txtlogin" Display="Dynamic" validationexpression="[a-zA-Z0-9]{6,16}" runat="server" ErrorMessage="Nom d'usagé doit contenir entre 6 et 10 charactéres">*</asp:RegularExpressionValidator>
        Nom Usagé:</asp:TableCell><asp:TableCell><asp:TextBox ID="txtlogin"  runat="server"></asp:TextBox></asp:TableCell></asp:TableRow>
        <asp:TableRow>
        <asp:TableCell>
        <asp:RequiredFieldValidator ID="empty_pass1" Display="Dynamic" ControlToValidate="txtpassword" runat="server" ErrorMessage="Le champs MotDePasse est vide">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="valid_pass1" Display="Dynamic" ControlToValidate="txtpassword" validationexpression="[a-zA-Z0-9]{6,16}" runat="server" ErrorMessage="Votre mot de passe doit contenir entre 6 et 15 charactéres">*</asp:RegularExpressionValidator>
        Mot de Passe:</asp:TableCell>
        <asp:TableCell><asp:TextBox ID="txtpassword"  TextMode="Password" runat="server"></asp:TextBox></asp:TableCell>
        </asp:TableRow>

        <asp:TableRow>
        <asp:TableCell> <asp:RequiredFieldValidator ID="empty_pass2" Display="Dynamic" ControlToValidate="txtpassword2" runat="server" ErrorMessage="Le champs RépétionMotDePasse est vide">*</asp:RequiredFieldValidator>
        <asp:CompareValidator ID="valid_pass2" Display="Dynamic" ControlToValidate="txtpassword2" ControlToCompare="txtpassword" runat="server" ErrorMessage="Les mot de passes de concordent pas">*</asp:CompareValidator>
       <asp:RegularExpressionValidator ID="valid2_pass2" Display="Dynamic" ControlToValidate="txtpassword2" validationexpression="[a-zA-Z0-9]{6,16}" runat="server" ErrorMessage="Votre mot de passe doit être entre 6 et 15 charactères">*</asp:RegularExpressionValidator>
        Répéter Mot de Passe:</asp:TableCell><asp:TableCell><asp:TextBox ID="txtpassword2"  TextMode="Password" runat="server"></asp:TextBox></asp:TableCell></asp:TableRow>


        <asp:TableRow><asp:TableCell> <asp:RequiredFieldValidator ID="empty_lastname" Display="Dynamic" ControlToValidate="txtlastname" runat="server" ErrorMessage="Le champs NomDeFamille est vide">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="valid_lastname" Display="Dynamic" ControlToValidate="txtlastname" runat="server" ValidationExpression="[a-zA-Z]{1,50}" ErrorMessage="Nom de Famille doit seulement contenir des lettres">*</asp:RegularExpressionValidator>
        Nom:</asp:TableCell><asp:TableCell><asp:TextBox ID="txtlastname" runat="server"></asp:TextBox></asp:TableCell></asp:TableRow>

        <asp:TableRow><asp:TableCell> <asp:RequiredFieldValidator ID="empty_firstname" Display="Dynamic" ControlToValidate="txtfirstname" runat="server" ErrorMessage="Le champs Prénom est vide">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="valid_firstname" Display="Dynamic" ControlToValidate="txtfirstname" runat="server" ValidationExpression="[a-zA-Z]{1,50}" ErrorMessage="Prénom doit seulement contenir des lettres">*</asp:RegularExpressionValidator>
        Prénom:</asp:TableCell><asp:TableCell><asp:TextBox ID="txtfirstname" runat="server"></asp:TextBox></asp:TableCell></asp:TableRow>
        <asp:TableRow><asp:TableCell>
        Age:</asp:TableCell><asp:TableCell><asp:DropDownList ID="cboyears" Width="70px" runat="server" 
            >
        </asp:DropDownList>
        <asp:DropDownList ID="cbomonths" Width="110px"  runat="server">
        </asp:DropDownList>
        <asp:DropDownList ID="cboday" Width="60px"  runat="server">
        </asp:DropDownList></asp:TableCell></asp:TableRow>
        <asp:TableRow><asp:TableCell>Sexe:</asp:TableCell><asp:TableCell><asp:RadioButtonList ID="radsexe" RepeatDirection=Horizontal runat="server">            
        </asp:RadioButtonList></asp:TableCell></asp:TableRow>
        

        <asp:TableRow><asp:TableCell> <asp:RequiredFieldValidator ID="empty_city" Display="Dynamic" ControlToValidate="txtcity"  runat="server" ErrorMessage="Le champs Ville est vide">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="valid_city" Display="Dynamic" ControlToValidate="txtcity" ValidationExpression="[a-zA-Z]{1,50}" runat="server" ErrorMessage="Le champs Ville doit seulement compter des lettres">*</asp:RegularExpressionValidator>
        Ville:</asp:TableCell><asp:TableCell><asp:TextBox ID="txtcity" runat="server"></asp:TextBox></asp:TableCell></asp:TableRow>

        <asp:TableRow><asp:TableCell>Pays: </asp:TableCell><asp:TableCell><asp:DropDownList ID="cbocountry" runat="server">
        </asp:DropDownList></asp:TableCell></asp:TableRow>
        

        <asp:TableRow><asp:TableCell> <asp:RequiredFieldValidator ID="empty_email" Display="Dynamic" ControlToValidate="txtemail" runat="server" ErrorMessage="Le champs Courriel est vide">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="valid_email" Display="Dynamic" runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtemail" ErrorMessage="Adresse Email Invalide">*</asp:RegularExpressionValidator>
        Courriel:</asp:TableCell><asp:TableCell><asp:TextBox ID="txtemail" runat="server"></asp:TextBox></asp:TableCell></asp:TableRow>        
            </asp:Table>
        <asp:Button ID="btnsubmit" runat="server" Text="Enregistrer" 
            onclick="btnsubmit_Click" />
            
            <div style="float:left;width:350px;position:relative;
left:400px;top:-400px;">
             <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
HeaderText="There were errors on the page:" />
        <asp:Label ID="showErrorCountry" ForeColor="Red" runat="server" Text=""></asp:Label>
            </div>
        </div>
            


</asp:Content>
